﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerCollide : MonoBehaviour {

    void OnCollisionEnter (Collision other) {
        if (other.gameObject.tag == "Player") {
            other.gameObject.GetComponent<Animator> ().SetTrigger ("death");
            this.GetComponent<Animator> ().SetTrigger ("shoot");
            Singleton<GameEventManager>.Instance.PlayerGameover ();
        }
    }
}